import '@/assets/main.scss'

import { createApp } from 'vue'
import pinia from './stores'

//完整引入element-plus资源
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'

import App from './App.vue'
import router from './router'

//初始化esri的apikey
import esriConfig from '@arcgis/core/config.js'
esriConfig.apiKey =
  'AAPT3NKHt6i2urmWtqOuugvr9YRNB4XSo1vrkVMdHWXAf4_C3tYuT1cqk9rtXdNqsOF7_YRrUHAQG0K9JtWddhhzAaRklMYbjV9Em8Tzqs-5lHds682hGpJ2u8i8-7CeFecs0s2nb45FewELNRllLXZ3YT4mwwS5X1fjvZ5zm7Uv2YyHxyv1JkIzrkxTkWQ54LgNKc5zWQWWRzfN3BfrH5UY0ib7aeqg285xg3avuAMYc5lixDiafEjr3y1z9zxGgJjX'
//初始化esri语言
import * as intl from '@arcgis/core/intl.js'
intl.setLocale('zh-CN')

const app = createApp(App)

app.use(pinia)
app.use(ElementPlus)
app.use(router)

app.mount('#app')
